import request from '@/utils/request'

// 查询环鄱赛订单记录列表
export function listRecord(query) {
  return request({
    url: '/hps/orderRecord/list',
    method: 'get',
    params: query
  })
}

// 查询环鄱赛订单记录详细
export function getRecord(id) {
  return request({
    url: '/hps/orderRecord/' + id,
    method: 'get'
  })
}

// 新增环鄱赛订单记录
export function addRecord(data) {
  return request({
    url: '/hps/orderRecord',
    method: 'post',
    data: data
  })
}

// 修改环鄱赛订单记录
export function updateRecord(data) {
  return request({
    url: '/hps/orderRecord',
    method: 'put',
    data: data
  })
}

// 删除环鄱赛订单记录
export function delRecord(id) {
  return request({
    url: '/hps/orderRecord/' + id,
    method: 'delete'
  })
}

// 导出环鄱赛订单记录
export function exportRecord(query) {
  return request({
    url: '/hps/orderRecord/export',
    method: 'get',
    params: query
  })
}

// 参数数据恢复
export function dataRecovery(id) {
  return request({
    url: '/hps/orderRecord/dataRecovery/' + id,
    method: 'get',
    timeout: 200000
  })
}
